package cn.aitrox.ry.service.anno.controller;

import cn.aitrox.ry.bean.RespResult;
import cn.aitrox.ry.common.controller.BaseController;
import cn.aitrox.ry.service.anno.api.AnnoUltrasoundApi;
import cn.aitrox.ry.service.anno.dto.anno.ultrasound.video.VideoTraceInDto;
import cn.aitrox.ry.service.anno.service.AnnoUltrasoundService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class AnnoUltrasoundController extends BaseController implements AnnoUltrasoundApi {

    @Autowired
    private AnnoUltrasoundService annoUltrasoundService;

    @PostMapping("/anno/ultrasound/video/trace")
    public RespResult videoTrace(@Validated @RequestBody VideoTraceInDto input) {
        return annoUltrasoundService.videoTrace(input.getArId());
    }

}
